package zoodemo;

public class zooMainApp {

    public static void main(String[] args) {
        Feeder feeder=new Feeder("张三");
        feeder.say();
        Cat cat =new Cat("小花");
        Dog dog=new Dog("大黄");
        //两步
        Food f1=new Food("小于罐头");
        feeder.feed(f1,cat);
        //一步直接赋值 匿名对象
        feeder.feed(new Food("肉骨头"),dog);



    }
}
